/*
 * @Author: hechengfei h349187021@163.com
 * @Date: 2022-08-10 14:41:08
 * @LastEditors: hechengfei h349187021@163.com
 * @LastEditTime: 2022-08-23 15:34:06
 * @FilePath: \xiangmu\src\components\contractmanagement\ContractList.jsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react'
import GetPages from './GetPages';
import '../../assets/css/contract/GetPages.css'
import ContractTable from './ContractTable';
import { inject, observer } from 'mobx-react'


const ContractList = (props) => {
    const onPageChange = (page, size) => {
        props.contractStore.currentPage = page
        props.contractStore.pageSize = size
    }
    return (
        <div className='ContractFather'>
            <ContractTable />
            <GetPages total={props.contractStore.total} onPageChange={onPageChange} className='GetPages' />
        </div>
    )

};
export default inject('contractStore')(observer(ContractList)) 